package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ViperMapper;
import com.ruoyi.system.domain.Viper;
import com.ruoyi.system.service.IViperService;

/**
 * viperService业务层处理
 * 
 * @author handsome
 * @date 2023-12-19
 */
@Service
public class ViperServiceImpl implements IViperService 
{
    @Autowired
    private ViperMapper viperMapper;

    /**
     * 查询viper
     * 
     * @param vipID viper主键
     * @return viper
     */
    @Override
    public Viper selectViperByVipID(Long vipID)
    {
        return viperMapper.selectViperByVipID(vipID);
    }

    /**
     * 查询viper列表
     * 
     * @param viper viper
     * @return viper
     */
    @Override
    public List<Viper> selectViperList(Viper viper)
    {
        return viperMapper.selectViperList(viper);
    }

    /**
     * 新增viper
     * 
     * @param viper viper
     * @return 结果
     */
    @Override
    public int insertViper(Viper viper)
    {
        return viperMapper.insertViper(viper);
    }

    /**
     * 修改viper
     * 
     * @param viper viper
     * @return 结果
     */
    @Override
    public int updateViper(Viper viper)
    {
        return viperMapper.updateViper(viper);
    }

    /**
     * 批量删除viper
     * 
     * @param vipIDs 需要删除的viper主键
     * @return 结果
     */
    @Override
    public int deleteViperByVipIDs(Long[] vipIDs)
    {
        return viperMapper.deleteViperByVipIDs(vipIDs);
    }

    /**
     * 删除viper信息
     * 
     * @param vipID viper主键
     * @return 结果
     */
    @Override
    public int deleteViperByVipID(Long vipID)
    {
        return viperMapper.deleteViperByVipID(vipID);
    }
}
